import request from '@/utils/request'





export function getEmployeeList(params) {
    return request({
      url: '/employee/list',
      method: 'get',
      params
    })
  }


  export function addEmployee(params) {
    return request({
      url: '/employee/add',
      method: 'post',
      data: params
    })
  }

  export function getEmployeeById(id) {
    return request({
      url: '/employee/get',
      method: 'get',
      params: { id }
    })
  }


  export function updateSaveEmployee(params) {
    return request({
      url: '/employee/updateSave',
      method: 'post',
      data: params
    })
  }

  export function delEmployeeById(id) {
    return request({
      url: `/employee/del/${id}`,
      method: 'post'
    })
  }


  export function updateSateEmployee(params) {
    return request({
      url: '/employee/updateState',
      method: 'post',
      data: params
    })
  }

  export function getEmployeeStateList(params) {
    return request({
      url: '/employee/leader/list',
      method: 'get',
      params
    })
  }

  export function agree(params) {
    return request({
      url: '/employee/leader/agree',
      method: 'post',
      data: params
    })
  }

  export function noagree(params) {
    return request({
      url: '/employee/leader/noagree',
      method: 'post',
      data: params
    })
  }